package com.ddtech.business.train.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ddtech.business.common.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 培训计划表
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TrainPlan对象", description="培训计划表")
public class TrainPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "培训计划名称")
    private String trainName;

    @ApiModelProperty(value = "培训内容")
    private String trainDesc;

    @ApiModelProperty(value = "主题图片")
    private String themeImage;

    @ApiModelProperty(value = "培训类型")
    private Integer planType;

    @ApiModelProperty(value = "关联考核任务")
    private String checkId;

    @ApiModelProperty(value = "培训人")
    private String trainTeacher;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @TableField(exist = false)
    private Long userCount;

    @TableField(exist = false)
    private Long finishCount;
}
